#ifndef __SW_I2C_EX_H__
#define __SW_I2C_EX_H__

#include "sw_i2c.h"

uint8_t sw_i2c_ex_read_byte(struct sw_i2c_dev *dev, uint8_t slave_addr, uint8_t reg_addr, uint8_t *data);
uint8_t sw_i2c_ex_write_byte(struct sw_i2c_dev *dev, uint8_t slave_addr, uint8_t reg_addr, uint8_t data);
uint8_t sw_i2c_ex_read_bytes(struct sw_i2c_dev *dev, uint8_t slave_addr, uint8_t reg_addr, uint8_t *data, uint16_t len);
uint8_t sw_i2c_ex_write_bytes(struct sw_i2c_dev *dev, uint8_t slave_addr, uint8_t reg_addr, const uint8_t *data, uint16_t len);

#endif /* __I2C_SENSER_H__ */

